package converter

import org.junit.Test;

import converter.util.EffectivePomProducer;

class DependecyWalkerTest {

	@Test
	void testDependecyWalker() {
		EffectivePomProducer epp = new EffectivePomProducer()
		File effectivePom = epp.getEffectivePom( new File("pom.xml"))
		DependencyWalker dw = new DependencyWalker()
		Map map = dw.walkEffectivePom(effectivePom)
		map.each{ key, value ->
			if(value) {
				printlnScopeValues(value)
			}
		}
	}
	
	void printlnScopeValues(def values) {
		SingleDependencyRender dr = new SingleDependencyRender()
		values.each{			
			println dr.contructSignature(it)
		}
	}
}
